<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>

<!DOCTYPE html>
<html>
<head>
	<title>教师信息显示</title>

	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- 引入bootstrap -->
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
	<!-- 引入JQuery  bootstrap.js-->
	<script src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>

	<%--<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">--%>
	<script type="text/javascript">

        function getListByPage(page){
            $("#curpage").val(page);
            $("#form1").submit();
        }
	</script>
</head>
<body>
	<!-- 顶栏 -->

	<!-- 中间主体 --><jsp:include page="top.jsp"></jsp:include>
	<div class="container" id="content">
		<div class="row">
			<jsp:include page="menu.jsp"></jsp:include>
			<div class="col-md-10">
				<div class="panel panel-default">
				    <div class="panel-heading">
						<div class="row">
					    	<h1 class="col-md-5">教师请假申请</h1>

						</div>
				    </div>
					<div class="panel-body">
						<form class="form-horizontal" role="form" action="${pageContext.request.contextPath}/teacher/addVacate.html" id="editfrom" method="post">、

							<div class="form-group">
								<label for="inputEmail3" class="col-sm-2 control-label">教师编号</label>
								<div class="col-sm-10">
									<input readonly="readonly" type="number" class="form-control" id="inputEmail3" name="teacherID" value="${username}">
								</div>
							</div>
							<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label">请假时间</label>
								<div class="col-sm-10">
									<input  type="date" class="form-control" id="inputPassword3" name="time" placeholder="请输入请假时间" >
								</div>
							</div>

							<div class="form-group">
								<label for="inputPassword4" class="col-sm-2 control-label">请假理由</label>
								<div class="col-sm-10">
									<input  type="text" class="form-control" id="inputPassword4" name="reason" placeholder="请输入请假理由" >
								</div>
							</div>
							<div class="form-group" style="text-align: center">
								<button class="btn btn-default" type="submit">保存</button>
							</div>
						</form>

				</div>

			</div>
		</div>
	</div>
	<div class="container" id="footer">
		<div class="row">
			<div class="col-md-12"></div>
		</div>
	</div>
</body>
	<script type="text/javascript">
		$("#nav li:nth-child(4)").addClass("active")

        <c:if test="${pagingVO != null}">
			if (${pagingVO.curentPageNo} == ${pagingVO.totalCount}) {
				$(".pagination li:last-child").addClass("disabled")
			};

			if (${pagingVO.curentPageNo} == ${1}) {
				$(".pagination li:nth-child(1)").addClass("disabled")
			};
        </c:if>

        function confirmd() {
            var msg = "您真的确定要删除吗？！";
            if (confirm(msg)==true){
                return true;
            }else{
                return false;
            }
        }

        $("#sub").click(function () {
            $("#form1").submit();
        });
	</script>
</html>
